public class Demofs10 {
    int getHeight(BinaryTree.TreeNode root) {
        if(root==null){
            return 0;
        }
        int lefttree = getHeight(root.left);
        int righttree = getHeight(root.right);
        return righttree>lefttree ? righttree +1:lefttree+1;
    }//
}
